import request from "@/utils/request";


enum FOOD {
    FNIDALL = "/foods/findall",
    DELETE = "/foods/deleteone"
}



//获取所有菜品
export const getAllFood = (skip = 0, type = "4", keyword = "", order = "desc") => request({
    method: "POST",
    url: FOOD.FNIDALL + `/${skip}` + `/${type}` + `/${order}`,
    data: {
        keyword: keyword
    }
})

//删除

export const deleteOne = (id: string) => request({
    method: "DELETE",
    url: FOOD.DELETE,
    data: {
        id: id
    }
})